package com.luocj.muke.demo.model;

import java.io.Serializable;

public class ShopCartModel implements Serializable {
    private String name;
    private int price;
    private boolean isChecked;
    private int num;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public ShopCartModel(String name, int price, boolean isChecked, int num) {
        this.name = name;
        this.price = price;
        this.isChecked = isChecked;
        this.num = num;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public ShopCartModel(String name, int price) {
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString() {
        return "ShopCartModel{" +
                "name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
